package com.run2code.design.behavioral.memento;

/**
 * 备忘录
 * 关注公众号【奔跑的码畜】，一起进步不迷路
 *
 * @author 第七人格
 * @date 2024/06/12
 */
class TextEditorMemento {
    /**
     * 编辑器状态
     */
    private final TextEditorState state;
  
    public TextEditorMemento(TextEditorState state) {  
        this.state = state;  
    }  
  
    public TextEditorState getState() {  
        return state;  
    }  
}